package com.cosmosource.core.config.dubbo;

import com.alibaba.ttl.TransmittableThreadLocal;

/**
 * <b>类名称：</b>ThreadLocal<br>
 * <b>类描述：</b><br>
 *
 * @author cosmo
 * @version 1.0.0<br>
 */
public class UserThreadLocal {

    private static final ThreadLocal<String> TL = new TransmittableThreadLocal<>();

    public static String get() {
        return TL.get();
    }

    public static void set(String id) {
        TL.set(id);
    }

    public static void remove() {
        TL.remove();
    }
}
